var Express = require('express'),
    Router = Express.Router(),

    commentPolicy = require('../policies/policy'),

    commentController = require('../controllers/comment.controller');

Router.route('/addComment').all(commentPolicy.isAllowed).post(commentController.addComment);

Router.route('/getCommentsByIdea').all(commentPolicy.isAllowed).post(commentController.getCommentsByIdea);

Router.route('/deleteComments').all(commentPolicy.isAllowed).post(commentController.deleteComments);

Router.route('/recentCommentsByUser').all(commentPolicy.isAllowed).post(commentController.recentCommentsByUser);

module.exports = Router;

